namespace mplat {
    export class VideoAd implements IVideoAd {

        protected _hasVideo: boolean;

        protected _info: IVideoInfo;

        constructor() {
            this._hasVideo = false;
        }

        get hasVideo() {
            return this._hasVideo;
        }

        set hasVideo(v: boolean) {
            this._hasVideo = v;
        }

        setInfo(info: IVideoInfo) {
            this._info = info || {
                ids: []
            };
        }

        showVideoAd(success: () => void, cancel?: () => void, complete?: () => void) {
            let v = confirm('是否看视频广告');
            if(v){
                if (!!success) success();
            }else{
                if (!!cancel) cancel();
            }
        }
        loadVideoAd() {
        }

    }
}